<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>web-vitals-sample</title>
  </head>
  <body>
    <h2>web-vitals-sample</h2>
    <script>
      (function () {
        var script = document.createElement("script");
        script.src = "https://unpkg.com/web-vitals/dist/web-vitals.iife.js";
        script.onload = function () {
          // When loading `web-vitals` using a classic script, all the public
          // methods can be found on the `webVitals` global namespace.
          webVitals.getCLS(console.log);
          webVitals.getFID(console.log);
          webVitals.getLCP(console.log);
        };
        document.head.appendChild(script);
      })();
    </script>
  </body>
</html>
